import React, { Component } from 'react'
import { Provider, connect, useDispatch } from 'react-redux'

import configStore from './redux/store'
// import WithRedux from './redux/withRedux'


import './app.scss'

const store = configStore()

class App extends Component {
  
  componentDidMount() { }

  componentDidShow() { }

  componentDidHide() { }

  componentDidCatchError() { }

  // 在 App 类中的 render() 函数没有实际作用
  // 请勿修改此函数
  render() {
    return (
      <Provider store={store}>
        {/* <WithRedux> */}
          {this.props.children}
        {/* </WithRedux> */}
      </Provider>
    )
  }
}

export default App
